package com.bdzl.admin.service.data.impl;

import com.bdzl.pub.vo.data.VehBrandVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bdzl.admin.dao.data.VehBrandDao;
import com.bdzl.pub.entity.data.VehBrandDO;
import com.bdzl.admin.service.data.VehBrandService;



@Service
public class VehBrandServiceImpl implements VehBrandService {
	@Autowired
	private VehBrandDao vehBrandDao;
	
	@Override
	public VehBrandDO get(Integer brandId){
		return vehBrandDao.get(brandId);
	}
	
	@Override
	public List<VehBrandDO> list(Map<String, Object> map){
		return vehBrandDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return vehBrandDao.count(map);
	}
	
	@Override
	public int save(VehBrandDO vehBrand){
		return vehBrandDao.save(vehBrand);
	}
	
	@Override
	public int update(VehBrandDO vehBrand){
		return vehBrandDao.update(vehBrand);
	}
	
	@Override
	public int remove(Integer brandId){
		return vehBrandDao.remove(brandId);
	}
	
	@Override
	public int batchRemove(Integer[] brandIds){
		return vehBrandDao.batchRemove(brandIds);
	}

	/**
	 * 获取VehBrandDO 和 UserDO连表内容
	 * @param map
	 * @return
	 */
	@Override
	public List<VehBrandVO> vBAndUserlist(Map<String, Object> map){
		return vehBrandDao.vBAndUserlist(map);
	}

	@Override
	public int vBAndUserlistCount(Map<String, Object> map) {
		return vehBrandDao.vBAndUserlistCount(map);
	}
}
